package com.zis.system.dao;

import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import com.zis.system.model.Region;

import java.util.List;

@Repository
@SqlResource(value = "system.region")
public interface RegionDao extends BaseMapper<Region> {

    @SqlStatement(params = "parentId")
    List<Region> findByParentId(String parentId);
}
